/**
 * Copyright 2020 OPSLI 快速开发平台 https://www.opsli.com
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */
package org.opsli.api.wrapper.business.valveMaintain;

import java.math.BigDecimal;
import java.util.Date;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.opsli.api.base.warpper.ApiWrapper;
import org.opsli.common.annotation.validator.Validator;
import org.opsli.common.annotation.validator.ValidatorLenMax;
import org.opsli.common.annotation.validator.ValidatorLenMin;
import org.opsli.common.enums.ValidatorType;
import org.opsli.plugins.excel.annotation.ExcelInfo;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

/**
* 阀门井维护 Model
*
* @author zk
* @date 2021-10-28 18:44:16
*/
@Data
@EqualsAndHashCode(callSuper = false)
public class ValveMaintainModel extends ApiWrapper {

    /** 公司编号 */
    @ApiModelProperty(value = "公司编号")
    @ExcelProperty(value = "公司编号", order = 1)
    @ExcelInfo
    @ValidatorLenMax(19)
    private String devid;

    /** 阀门井编号 */
    @ApiModelProperty(value = "阀门井编号")
    @ExcelProperty(value = "阀门井编号", order = 2)
    @ExcelInfo
    @ValidatorLenMax(19)
    private String valveId;

//    阀门井名称
    private String  valveName;
    /** 设备编号 */
    @ApiModelProperty(value = "设备编号")
    @ExcelProperty(value = "设备编号", order = 3)
    @ExcelInfo
    @ValidatorLenMax(500)
    private String deviceId;

    /** 维护原因 */
    @ApiModelProperty(value = "维护原因")
    @ExcelProperty(value = "维护原因", order = 4)
    @ExcelInfo
    @ValidatorLenMax(500)
    private String reason;

    /** 维护内容 */
    @ApiModelProperty(value = "维护内容")
    @ExcelProperty(value = "维护内容", order = 5)
    @ExcelInfo
    @ValidatorLenMax(500)
    private String content;

    /** 维护结果 */
    @ApiModelProperty(value = "维护结果")
    @ExcelProperty(value = "维护结果", order = 6)
    @ExcelInfo
    @ValidatorLenMax(500)
    private String result;

    /** 维修人 */
    private String maintainPerson;
    /** 维修时间 */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")

    @JsonFormat(pattern = "yyyy-MM-dd") //后端返回的数据

    @ApiModelProperty(value = "维修时间")
    private  Date maintainTime;



}
